import { defineComponent, ref } from "vue";
import { Edit } from "@element-plus/icons-vue";

export default defineComponent(() => {
  const keyyy = ref('')
  const json = [
    {
      id: "1",
      type: ">",
      render: () => {
        return <input />;
      },
    },
    {
      id: "2",
      type: "=",
      render: () => {
        return <select />;
      },
    },
  ];
  const change= ()=>{
    keyyy.value = 'dw'
  }
  const render = () => {
    return (
      <>
        <div onChange={change}>xuane</div>
        <div>{json.findIndex((item) => item.type == ">").render()}</div>
      </>
    );
  };
  return render;
});
